package com.ladlee.parking.sequence.seq;

import com.ladlee.parking.sequence.ex.SeqException;

/**
 * 序列号生成接口
 */
public interface Sequence {

    /**
     * 生成下一个序列号
     *
     * @return 序列号
     * @throws SeqException
     */
    long nextValue() throws SeqException;

    /**
     * 下一个序列号(带格式)
     *
     * @return
     * @throws SeqException
     */
    String nextNo() throws SeqException;
}
